<?php echo link_to_function(image_tag('/sfFormGuiPlugin/images/puce-plus'), visual_effect('toggle_blind','order-sfFormGui',array('duration'=>'.2')));?>
<ul class="sorter" id="order-sfFormGui">
    <?php foreach ($sf_form_guiList as $sf_form_gui ): ?>
    <li id="item_<?php echo $sf_form_gui->getPrimaryKey() ?>" class="sortable">
        <?php echo image_tag('/sfFormGuiPlugin/images/handle','class=move'); ?>
        <span class="actions">
            <?php echo link_to(image_tag('/sfFormGuiPlugin/images/edit','alt=edit class=action'),'sfFormGui/edit?id='.$sf_form_gui->getId());?>
            <?php echo link_to(image_tag('/sfFormGuiPlugin/images/show','alt=show class=action'),'sfFormGui/show?id='.$sf_form_gui->getId(),'class=link');?>
            <?php echo link_to(image_tag('/sfFormGuiPlugin/images/delete','alt=delete class=action'),'sfFormGui/delete?id='.$sf_form_gui->getId(),array(
                'confirm' => __('Are you sure ?')
            ));?>
        </span>
        <span><?php echo $sf_form_gui->getName() ?></span>
        <span><?php echo $sf_form_gui->getDescription() ?></span>
        <div class="clear-both"></div>
        <?php include_partial('sfFormGuiQuestion/list', array(
            'sf_form_gui' => $sf_form_gui,
            'criteria' => $criteria
        ));?>
        <a href="<?php echo url_for('sfFormGuiQuestion/create') ?>">Create</a>
    </li>
    <?php endforeach; ?>
</ul>
<?php echo sortable_element('order-sfFormGui', array(
  'url'      => 'sfFormGui/sort',
  'update'   => 'feedback',
          'loading'  => visual_effect('appear', 'indicator', array()),
          'complete' => visual_effect('fade', 'indicator', array()),
          'success'  => visual_effect('highlight', 'feedback', array(
              'afterFinish' => 'function() {'.
                  visual_effect('DropOut', 'feedback', array('afterFinish'=>' function() { $("feedback").update().show(); }')).
              '}'
          )),
          'handle' => 'move',
          'only' => 'sortable'
)) ?>